<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
           xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="template.xhtml">        
        <ui:define name="content">

            <table>
                <tr><td>user name</td><td>password</td><td>delete user</td><td>modify user</td>
                </tr>
                 <ui:repeat var="u" value="#{listUserController.usersWanted}" varStatus="status">
                     <tr><td>#{u.userName}</td><td>#{u.password}</td>
                       <td>
                            <h:form>
                                <h:commandButton action="#{modifyUserController.remove()}" value="remove"> 
                                    <f:param name="u_id" value="#{u.id}"/>
                                </h:commandButton>
                                </h:form>
                                 </td>
                                <td>
                                    <h:form>
                                   <h:link outcome="modifyUser" value="modify"> 
                                       <f:param name="u_id" value="#{u.id}"/>
                                   </h:link>
                            </h:form>
                         </td>
                       </tr>
                </ui:repeat>
            </table>
        </ui:define>
    </ui:composition>
</html>
